package cn.fjgc.work;

public class Test2 {
	
	//static int NUM1 = 1;
	static int num = 1;
	
	public static void main(String[] args) {
		System.out.println("value = " + indexNum(45, 1, 1));
		
	}
	
	static int indexNum(int num1,int num2, int num3) {
		
		if(num1 > 2) {
			return indexNum(num1-1, num3, num3 + num2);
		} 
		return num3;
	}
}
